<!--
 /**
 * Date: 2022-04-02 17:24
 * Desc: 关联产品详情  SingleDetail
 */
-->
<template>
  <zm-dialog
    class="single-detail"
    :title="titles"
    :visible.sync="value"
    :before-close="dialogClose"
    :show-footer="false"
  >
    <zm-detail-table :list="column" :info="form" />
  </zm-dialog>
</template>
<script>
import dialogMixin from '@/mixins/dialogMixin'
import { baseInfo } from '../const.js'
import ZmDetailTable from '@/components/zmDetailTable'

export default {
  name: 'SingleDetail',
  components: { ZmDetailTable },
  mixins: [dialogMixin],
  props: {
    obj: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  data() {
    return {
      form: this.obj
    }
  },
  computed: {
    column() {
      return baseInfo(this)
    },
    titles() {
      console.log(this.form, 'this.form')
      return this.form && this.form.name
    }
  },
  created() {},
  mounted() {},
  methods: {}
}
</script>
